/*************************************************************************

Framework\System.Diagnostics.Debug.cpp

	-by Miles Chen (stainboyx@hotmail.com) 2008-12-27

*************************************************************************/

#pragma once

#include "commdef-int.h"

N System{N Diagnostics{N Debug{

	void AssertNotImpl()
	{
		Assert("NotImplementException");
	}

	void Assert(LPSTR lpszMsg)
	{
		Assert(TRUE, lpszMsg);
	}
	void Assert(LPWSTR lpszMsg)
	{
		Assert(TRUE, lpszMsg);
	}

	void Assert(BOOL condition, LPSTR lpszMsg)
	{
#ifdef _DEBUG
		if(condition)
			MessageBoxA(NULL, lpszMsg, "Debug.AssertA", MB_OK);
#endif
	}
	void Assert(BOOL condition, LPWSTR lpszMsg)
	{
#ifdef _DEBUG
		if(condition)
			MessageBoxW(NULL, lpszMsg, L"Debug.AssertW", MB_OK);
#endif
	}

}}}